/**
 * Copyright (C), 2015-2018, XXX有限公司
 * FileName: SellException
 * Author:   Administrator
 * Date:     2018/4/30 0030 00:32
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.imooc.exception;

import com.imooc.enums.ResultEnum;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author Administrator
 * @create 2018/4/30 0030
 * @since 1.0.0
 */
public class SellException extends RuntimeException {

    private Integer code;

    public SellException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }
}